package com.xuecheng.content.feignclient.search;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="search",path="/search",contextId="courseIndex",
fallbackFactory=CourseIndexClientFactory.class)
@RequestMapping("/index")
public interface CourseIndexClient {
    @PostMapping("/course")
    Boolean add(@RequestBody CourseIndex courseIndex);
}
